<div class="col-mg-12" style="text-align: center;">
    <h3>管理员信息管理</h3>
</div>

<div class="col-md-12 tabs-div">
    <ul class="nav nav-tabs">
        <li role="presentation" <?=$_params['status'] == 'no' ? "" : 'class="active"'?>><a href="/index/listp">管理员列表</a></li>
        <li role="presentation" <?=$_params['status'] == 'no' ? 'class="active"' : ""?>><a href="/index/listp?status=no">封禁列表</a></li>
    </ul>
</div>
<div class="col-sm-12">
    <form action="/index/listp" method="get">
        <div class="col-md-5">
            <div class="form-group col-md-10">
                <div class="input-group">
                    <div class="input-group-addon">管理员昵称:</div>
                    <input type="text" class="form-control col-md-7" name="real_name" id="" placeholder="请输入管理员昵称" value="<?= !empty($_params['real_name']) ? $_params['real_name'] : '' ?>" >
                </div>
            </div>
        </div>

        <div class="col-md-1" >
            <div class="form-group">
                <input type="submit" class="btn btn-sm btn-info" value="搜索">
            </div>
        </div>
        <div class="col-md-1" style="text-align: right;">
            <!--<a onclick="downloadfile()" class="btn btn-sm btn-info">导出表格</a>-->
        </div>
    </form>
</div>

<table class="table table-hover tableWithBorder">
    <thead>
    <tr>
        <th>管理员ID</th>
        <th>昵称</th>
        <th>用户名</th>
        <th>加入日期</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
        <?php
            foreach ($list as $admin) {
        ?>
                <td><?=$admin['id']?></td>
                <td><?=$admin['real_name']?></td>
                <td><?=$admin['username']?></td>
                <td><?=$admin['created']?></td>
                <td>
                    <button class="btn btn-default btn-sm btn-info">禁用</button>
                    <button class="btn btn-default btn-sm btn-info">重置密码</button>
                </td>
        <?php
            }
        ?>
    </tbody>
</table>
